package cn.tedu._03vehicle.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAILED(3000,"操作失败"),
    OPERATION_EXISTS(1000,"用户名被创建"),
    USERNAME_PASSWORD_ERROR(1001,"用户名或密码错误"),
    NOT_LOGIN(1002,"未登录"),
    UNKNOWN_ERROR(9999,"服务器繁忙，请重试"),
    THROWABLE_ERROR(9998, "未知异常，Throwable Error"),
    ILLEGAL_ARGUMENT(9997, "非法参数异常，IllegalArgumentException"),
    NULL_POINTER(9996, "空指针异常，NullPointerException"),
    VALIDATRD_ERROR(9995, "参数校验失败"),
    FILE_IS_SO_BIG(9996, "文件大小超出限制");

    private Integer state;
    private String message;
}
